package com.ibm.ops.parser;

import com.ibm.ops.exception.CreateReportException;
import com.ibm.ops.exception.PersistentIOException;
import com.ibm.ops.exception.RetrieveReportDataException;
import com.ibm.ops.persistent.PersistentHandler;

public abstract class Parser {
	
	protected PersistentHandler persistentHanlder = null;
	
	public Parser(PersistentHandler persistentHanlder){
		this.persistentHanlder = persistentHanlder;
	}

	public abstract Object parse(String content) throws CreateReportException,RetrieveReportDataException,PersistentIOException;

	public void setPersistentHanlder(PersistentHandler persistentHanlder) {
		this.persistentHanlder = persistentHanlder;
	}
	
}
